package yibao.youyun.com.yibao.view;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;

/**
 * Created by woodnaonly on 2015/11/23.
 */
public class MyRecyclerView extends RecyclerView

{
    public MyRecyclerView(Context context)
    {
        super(context);
    }

    public MyRecyclerView(Context context, AttributeSet attrs)
    {
        super(context, attrs);
    }

    public MyRecyclerView(Context context, AttributeSet attrs, int defStyle)
    {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev)
    {
        getParent().requestDisallowInterceptTouchEvent(true);
        return super.dispatchTouchEvent(ev);
    }
}
